Notifying Tasks at Interrupt Time
If you want to send a notification to a task from a 68K-style interrupt handler, you can do so using the functions MPSignalSemaphore
, MPSetEvent
, or MPNotifyQueue
. The MPSignalSemaphore
and MPSetEvent
functions are always interrupt-safe, while the MPNotifyQueue
function becomes interrupt-safe if you reserve notifications on the message queue. See the MPSetQueueReserve
function description for more information about reserving notifications.
WARNING
Aside from these three notification functions, only MPCurrentTaskID
and MPYield
are interrupt-safe; attempting to call other Multiprocessing Services functions at interrupt time, or at a deferred-task time, may cause a system crash.
© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)